/**
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */
.dashboard-component-chart-holder {
  width: 100%;
  height: 100%;
  color: @gray-dark;
  background-color: @lightest;
  position: relative;
  padding: 16px;

  .missing-chart-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;

    .missing-chart-body {
      font-size: 12px;
    }

    .loading-container {
      position: relative;
      height: 40%;
    }
  }

  &.fade-in {
    border-radius: 4px;
    box-shadow: inset 0 0 0 2px fade(@shadow-highlight, 1), 0 0 0 3px fade(@shadow-highlight, @opacity-light);
    transition: box-shadow 1s ease-in-out;
  }

  &.fade-out {
    border-radius: 4px;
    box-shadow: none;
    transition: box-shadow 1s ease-in-out;
  }
}

.dashboard-chart {
  overflow: hidden;
}

.dashboard-chart.dashboard-chart--overflowable {
  overflow: visible;
}

.dashboard--editing .dashboard-component-chart-holder:after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0px;
  left: 0px;
  z-index: 1;
  pointer-events: none;
  border: 1px solid transparent;
}

.dashboard--editing
  .resizable-container:hover
  > .dashboard-component-chart-holder:after,
.dashboard--editing .dashboard-component-chart-holder:hover:after {
  border: 1px dashed @indicator-color;
  z-index: 2;
}

.dashboard--editing
  .resizable-container.resizable-container--resizing:hover
  > .dashboard-component-chart-holder:after {
  border: 1px dashed @indicator-color;
}

.dashboard--editing
  .dashboard-component-chart-holder
  .dashboard-chart
  .chart-container {
  cursor: move;
  opacity: 0.2;
}

.dashboard--editing
  .dashboard-component-chart-holder:hover
  .dashboard-chart
  .chart-container {
  opacity: 0.7;
}

.dashboard--editing
  .dashboard-component-chart-holder
  .dashboard-chart
  .slice_container {
  /* disable chart interactions in edit mode */
  pointer-events: none;
}

.slice-header-controls-trigger {
  padding: 0 16px;
  position: absolute;
  top: 0;
  right: -16px; //increase the click-able area for the button

  &:hover {
    cursor: pointer;
  }
}

.dot {
  height: 4px;
  width: 4px;
  background-color: @gray;
  border-radius: 50%;
  margin: 2px 0;
  display: inline-block;

  .vertical-dots-container & {
    display: block;
  }

  a[role='menuitem'] & {
    width: 8px;
    height: 8px;
    margin-right: 8px;
  }
}

.time-filter-tabs > .nav-tabs {
  margin-bottom: 8px;
}

.time-filter-tabs > .nav-tabs > li > a {
  padding: 4px;
}
